package com.ssm.service;

import com.ssm.common.ServerResponse;
import com.ssm.entity.pojo.MmallUser;



public interface IUserService {
    ServerResponse<MmallUser> login(String username,String password);
    ServerResponse<String> register(MmallUser user);
    ServerResponse<String> checkValid(String str,String strType);
    ServerResponse<String> selectQuestionByUsername(String username);
    ServerResponse<String> checkAnswer(String username,String question,String answer);
    ServerResponse<String> forgetResetPassword(String username,String passwordnew,String forgetToken);
    ServerResponse<String> resetPassword(MmallUser user, String password, String passwordnew);
    ServerResponse<MmallUser> updateInfomation(MmallUser user);
    ServerResponse<MmallUser> getUserInformation(int id);
}
